Skip to content

PNG: Simplified color parsing logic#3051

Open
RunDevelopment wants to merge 1 commit into
image-rs:mainfrom
RunDevelopment:png-color-logic
Open

PNG: Simplified color parsing logic#3051
RunDevelopment wants to merge 1 commit into
image-rs:mainfrom
RunDevelopment:png-color-logic

Conversation

@RunDevelopment

Copy link
Copy Markdown
Member

I simplified the logic for parsing png's color type + depth a little.

I also removed ApngDecoder's animatable_color_type. Not only are ApngDecoder and PngDecoder tightly coupled (meaning that ApngDecoder should be allowed to make assumptions about PngDecoder), but the implementation of ApngDecoder doesn't actually use the assumption that decoded images are 8 bit or 16 bit. So it's doubly unnecessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant